package my.avoskagae.store.virtual.entity;

import my.avoskagae.model.entity.Product;

public class ProductImpl implements Product {

	static int counter = 0;
	
	private int id;
	
	private String name;

	private Boolean needPurchase;
	
	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}
	
	public ProductImpl() {
	
	}
	
	public ProductImpl(String name) {
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public static int getCounter() {
		return counter++;
	}

	@Override
	public Boolean getNeedPurchase() {
		return needPurchase;
	}

	@Override
	public void setNeedPurchase(Boolean needPurchase) {
		this.needPurchase = needPurchase;
	}


}
